# 写一个函数  mysum()， 可以传入任意个数字，返回所有数组的和
# def mysum(...):
#     ...
# print(mysum(1, 2, 3, 4))  # 10
# print(mysum(1, 2, 3, 4, 5))  # 15
# print(mysum())  # 0


def mysum(*args):
    result = 0
    for x in args:
        result += x
    return result

print(mysum(1, 2, 3, 4))  # 10
print(mysum(1, 2, 3, 4, 5))  # 15
print(mysum())  # 0